package net.neptech.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.tags.Tags;
import net.neptech.feign.AppointmentFeign;
import net.neptech.model.appointment.Appointment;
import net.neptech.vm.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "健康检查")
public class HealthController {
    @Autowired
    private AppointmentFeign appointmentFeign;
    @GetMapping("/health")
    public String health() {
        return "ok";
    }
    @GetMapping("/test")
    public ResponseResult<Appointment> test() {
        return appointmentFeign.test();
    }


}
